package taller2.view.windows.supervisor;

import java.util.ArrayList;

import taller2.interfaces.Graph;
import taller2.interfaces.Node;
import taller2.model.factorys.GraphFactory;
import taller2.utils.Constants;
import taller2.utils.Point;
import taller2.view.draws.GraphDrawer;
import taller2.view.menus.supervisor.ConnectedComponentsSupervisorMenu;
import taller2.view.menus.supervisor.GraphSupervisorMenu;

public class ConnectedComponentsSupervisorWindow extends SupervisorWindow{

	public ConnectedComponentsSupervisorWindow(Graph mainGraph, ArrayList<ArrayList<Node>> components) {
		super(mainGraph);
		
		Graph reference = GraphFactory.directedGgraphInstance();		
		reference.add(new Point(-50, 70), "         Select the scc containing the node");

		GraphDrawer referenceDrawer = new GraphDrawer(reference, Constants.selectedColor, Constants.unSelectedColor);
		referenceDrawer.resize(50, 4, 2*Constants.SampleTextSize);
		
		area.addDrawable(referenceDrawer);
				
		selector = new ConnectedComponentsSupervisorMenu(area,evaluationGraph, this,components);
		this.window.addComponent(selector, 1, 0, new Point(0, 1));
		this.window.redraw();	
		
	}
	
	protected GraphSupervisorMenu createGraphMenu(){
		return null;
	}
	
}
